import requests

url = "https://r2-ndr-private.ykt.cbern.com.cn/edu_product/esp/assets/a8b13ab7-7eef-4dc7-a3c7-8009ba65ce11.pkg/pdf.pdf"
session = requests.Session()

headers = {
    'User-Agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/126.0.0.0 Safari/537.36',
    'Referer': 'https://basic.smartedu.cn/',
    'X-Nd-Auth': 'MAC id="7F938B205F876FC398BCDC5BCE419D072446B575FC7FDED703B82E65C4F54C98DD87DD35BDF4D06AC5A4B5F0A3A1496F16468F7983CDEA32",nonce="1721273625892:AL15VFYE",mac="a/n Kf0hZVrvg0OydYhceM9kD9RgDT CvWm62vkN4zU="',
    'Content-Type': 'application/pdf'


           }

session.headers = headers

res =session.get(url)
print(res.text)